﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using PSE.Updater.Common.Providers;

namespace PSE.Updater.Common.Configurations.Monitor
{
    public class MonitorConfigurationElement : ConfigurationElement
    {
        /// <summary>
        /// Nome do Provider
        /// </summary>
        [ConfigurationProperty("type", IsKey = true, IsRequired = true)]
        public ProviderType Type
        {
            get { return (ProviderType)this["type"]; }
            set { this["type"] = (ProviderType)value; }
        }

        /// <summary>
        /// Intervalo de Verificação
        /// </summary>
        [ConfigurationProperty("interval", IsKey = false, IsRequired = true)]
        public double Interval
        {
            get { return (double)this["interval"]; }
            set { this["interval"] = (double)value; }
        }
    }
}
